import vue from '@vitejs/plugin-vue'

import pxtovw from 'postcss-px-to-viewport'
// 更多配置请参考
// https://github.com/evrone/postcss-px-to-viewport/blob/HEAD/README_CN.md
// https://vite.dev/config/
export default () => {

  return {
    css: {
      postcss: {
        plugins: [
          pxtovw({
            viewportWidth: 1920,
            viewportUnit: 'vw'
          })
        ]
      }
    },
    plugins: [vue()],
  }
}
